#ifndef PAKSERVICE_H
#define PAKSERVICE_H
#include <QString>
#include "TileOption.h"
#include <QStringList>
#include <QThread>
#include "datasource.h"
#include "sqldatadb.h"

using namespace rxtiler;

class sqlDataDb;

class pakServiceOption
{
public:

    pakServiceOption();

    QStringList inputFiles;
    QString outDir;
    TileOption tileOption;
    int level0;
    int level1;
    //.png
    QString ext;

    //坐标
    QString latlan;

};

class pakService : public QThread
{
    Q_OBJECT
public:
    pakService();
    int handle(pakServiceOption& option);
protected:
    pakServiceOption _option;
    DataSource* _insource{0};
    DataSource* _outsource{0};
//    sqlDataDb *m_sqlDataDb{0};
    // QThread interface
protected:
    void run();
};

#endif // PAKSERVICE_H
